package com.dhsc.local.dao.impl.common;

import com.dhsc.domain.yypt.sys.TXtdmVo;
import com.dhsc.local.dao.common.ICommonDao;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("commondao")
public class CommonDaoImpl implements ICommonDao {

    @Autowired
    private SqlSessionTemplate localSqlSessionTemplate;

    @Override
    public List<TXtdmVo> queryQsTXtdmByFldmStr(TXtdmVo x) {
        return localSqlSessionTemplate.selectList("CommonMapper.queryQsTXtdmByFldmStr",x);
    }

	@Override
	public String queryTjyr() {
		return localSqlSessionTemplate.selectOne("CommonMapper.queryTjyr");
	}

    @Override
    public List<TXtdmVo> queryZhTXtdmByFldmStr(TXtdmVo x) {
        return localSqlSessionTemplate.selectList("CommonMapper.queryZhTXtdmByFldmStr",x);
    }
}
